
<div class="container-fluid am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
            <div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span>我的委托详情</div>
           
        </div>
        <div class="am-u-lg-3 tpl-index-settings-button">
            <button type="button" class="page-header-button"><a href="javascript:history.back(-1)">返回</a></button>
        </div>
    </div>
</div>
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-fl">我的委托详情 </div>
                </div>
                <div class="widget-body  am-fr">
                    <div class="am-u-sm-12">
                        <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                            <thead>
                                <tr>
                                    <th>数额</th>
                                    <th>状态</th>
                                    <th>订单编号</th>
                                    <th>汇率</th>
                                    <th>类型</th>
                                    <th>时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {if condition="empty($info['tradelogs'])"}
                                <tr class="gradeX">
                                    <td style="text-align: center;color: blue;" colspan="7">未交易</td>
                                </tr>
                                {/if} 
                                {foreach $info['tradelogs'] as $vo}
                                <tr class="gradeX">
                                    <td class="am-text-middle"><strong>{$vo.buy_num}</strong></td>
                                    <td class="am-text-middle">
                                      <div class="tpl-table-black-operation">
                                        <a href="###" style="padding:10px 5px;color:#999;border-color: #999">
                                            {$vo.status_text}</a>
                                         {if condition="$vo['status']=='dispute'||$vo['status']=='solve'"}
                                          <a href="###" style="padding:10px 5px;color:#999;border-color: #999">
                                          {if condition="$vo['disputestatus']=='affirmsell'"}
                                            卖家申请仲裁
                                          {elseif condition="$vo['disputestatus']=='affirmbuy'"/}
                                            买家申请仲裁
                                          {elseif condition="$vo['disputestatus']=='waitting'"/}
                                            卖家申请仲裁
                                          {/if}        
                                           </a>
                                         {/if} 
                                         {if  condition="$vo['status']=='solve'"/}
                                             <a href="###" style="padding:10px 5px;color:#999;border-color: #999">
                                              {if condition="$vo['disputestatus']=='affirmsell'&&$vo['disputeres']=='success'"}
                                                卖家胜诉
                                              {elseif condition="$vo['disputestatus']=='affirmsell'&&$vo['disputeres']=='defeated'"/}
                                                买家胜诉
                                              {elseif condition="$vo['disputestatus']=='affirmbuy'&&$vo['disputeres']=='success'"/}
                                                买家胜诉
                                               {elseif condition="$vo['disputestatus']=='affirmbuy'&&$vo['disputeres']=='defeated'"/}
                                               卖家胜诉
                                               {elseif condition="$vo['disputestatus']=='waitting'&&$vo['disputeres']=='success'"/}
                                                卖家胜诉
                                               {elseif condition="$vo['disputestatus']=='waitting'&&$vo['disputeres']=='defeated'"/}
                                               买家胜诉
                                              {/if}   
                                             </a>
                                         {/if} 
                                      </div>
                                    </td>
                                    <td class="am-text-middle" style="padding-top:30px ;">
                                        <div style="float: left;">
                                            <p style="padding:5px 10px 0 0">{$vo.trade_no}</p>
                                           <!--  <input class="am-form-group"style="float: left;" value="S20181008163521bf3d"id="biao1" style="color: #000000;width: 20%; text-align: center;" type="hidden"/> -->
                                        </div>
                                       <!--  <button type="button" class="am-btn am-btn-primary am-btn-xs" onClick="copyUrl2()" value="点击复制代码" >复制编号</button> -->
                                    </td>
                                    <td class="am-text-middle">{$vo.buy_num*$vo.exch_rate}FAE</td>
                                    <td class="am-text-middle">{if condition="$info['action']=='buy'"}购买{else}出售{/if} {$vo.symbol}>>{$vo.tosymbol}</td>
                                    <td class="am-text-middle">{$vo.createtime|date='Y-m-d H:i:s',###}</td>
                                    <td class="am-text-middle">
                                        <div class="tpl-table-black-operation">
                                            <a href="{:url('trade/paynote')}?id={$vo.id}" style="padding:10px 5px">
                                                查看支付信息
                                            </a>
                                             {if condition="$info['action']=='sell'"}
                                            <a href="{:url('inout/upload')}?id={$vo.id}"style="padding:10px 20px">
                                                查看凭证
                                            </a>
                                            {else/}
                                             <a href="{:url('inout/upload')}?id={$vo.id}"style="padding:10px 20px">
                                                上传凭证
                                            </a>
                                            {/if}
                                            {if condition="$info['action']=='buy'&&$vo['status']=='waitting'"}
                                             <a href="{:url('trade/comfirmdakuan')}?id={$vo.id}" style="padding:10px 5px"
                                                type="button"
                                                data-am-modal="{target: '#my-alert', closeViaDimmer:0,}">
                                                打款
                                            </a>
                                             {elseif  condition="$info['action']=='buy'&&$vo['status']=='affirm'"/}
                                              <a href="###" style="padding:10px 5px"
                                                type="button"
                                                data-am-modal="{target: '#my-alert', closeViaDimmer:0,}">
                                                已打款
                                             </a>
                                             {elseif  condition="$vo['status']=='solve'"/}
                                              <a href="###" style="padding:10px 5px"
                                                type="button"
                                                data-am-modal="{target: '#my-alert', closeViaDimmer:0,}">
                                                已解决仲裁
                                             </a>
                                             {elseif  condition="$vo['status']=='dispute'"/}
                                              <a href="###" style="padding:10px 5px"
                                                type="button"
                                                data-am-modal="{target: '#my-alert', closeViaDimmer:0,}">
                                                仲裁中
                                             </a>
                                             {/if} 
                                            {if condition="$info['action']=='sell'&&$vo['status']=='affirm'"}
                                             <a href="{:url('trade/comfirmshoukuan')}?id={$vo.id}" style="padding:10px 5px"
                                                type="button"
                                                data-am-modal="{target: '#my-alert', closeViaDimmer:0,}">
                                                收款
                                             </a>
                                             {/if}
                                             {if condition="$info['action']=='sell'&&$vo['status']=='affirm'"}
                                              <a href="{:url('trade/dispute')}?id={$vo.id}" style="padding:10px 5px"
                                                type="button"
                                                data-am-modal="{target: '#my-alert', closeViaDimmer:0,}">
                                                仲裁
                                             </a>
                                             {/if}
                                             {if condition="$info['action']=='buy'&&$vo['status']=='affirm'&&$vo['allowdispute']==1"}
                                              <a href="{:url('trade/dispute')}?id={$vo.id}" style="padding:10px 5px"
                                                type="button"
                                                data-am-modal="{target: '#my-alert', closeViaDimmer:0,}">
                                                仲裁
                                             </a>
                                             {/if}   
                                            <div class="am-modal am-modal-alert" tabindex="-1" id="my-alert">
                                            <div class="am-modal-dialog">
                                                <div class="am-modal-hd"style="color: #000000">仲裁</div>
                                                <div class="am-modal-hd" style="color: #000000;">是否仲裁
                                                    <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
                                                </div>
                                                <div class="am-modal-footer">
                                                <span class="am-modal-btn">确定</span>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                               {/foreach} 
                               
                                
                                
                            </tbody>
                        </table>
                    </div>
                    <div class="am-u-lg-12 am-cf">

                        
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
